package com.gek.picturebackend.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gek.picturebackend.model.domain.User;
import com.gek.picturebackend.model.dto.UserQueryRequest;
import com.gek.picturebackend.model.vo.LoginUserVO;
import com.gek.picturebackend.model.vo.UserVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author tester
* @description 针对表【user(用户)】的数据库操作Service
* @createDate 2024-12-17 11:41:09
*/
public interface UserService extends IService<User> {
    long userRegister(String userAccount, String userPassword, String checkPassword);

     String getEncryptPassword(String userPassword);

     User getLoginUser(HttpServletRequest request);


     LoginUserVO userLogin(String userAccount, String userPassword, HttpServletRequest httpServletRequest);

     boolean userLogout(HttpServletRequest httpServletRequest);

     List<UserVO> getUserVOList(List<User> userList);


    QueryWrapper<User> getQueryWrapper(UserQueryRequest userQueryRequest);
}
